import java.util.Scanner;

/**
 * 定义InvalidInputException异常类，继承自Exception
 */
class InvalidInputException extends Throwable {
    public InvalidInputException(String message) {
        super(message);
    }
}
public class Task {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (true) {
            System.out.println("请输入年龄: ");
            int age = scanner.nextInt();

            // TODO 如果输入的年龄小于0或者大于200，抛出InvalidInputException异常

            System.out.println("您输入的年龄是: " + age);
        }
    }
}